import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import lazyLoadingDirective from './directives/lazy-loading';

import { Toast } from 'vant';

// 2. 引入组件样式
import 'vant/lib/index.css';

const app = createApp(App)

app.directive('lazy', lazyLoadingDirective);

app.use(Toast);

app.use(createPinia())
app.use(router)

app.mount('#app')
